package com.zrgj.services;
import com.github.pagehelper.PageHelper;
import com.zrgj.entity.User1;
import com.zrgj.mapper.UserMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class UserSrvImpl {

    @Resource
    private UserMapper userMapper;


    public List<User1> query(User1 user ){
        PageHelper.startPage(2,3);
        List list=userMapper.query(user);


        List list2=userMapper.query(user);
        return list;
    }

}
